package com.suning.entity;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

/**
 * 〈一句话功能简述 〉<br>
 * 〈功能详细描述〉
 *
 * @author 16080951(林健)
 * @Copyright (c) 2016 苏宁软件技术有限公司 版权所有
 * @see [相关类/方法]（可选）
 * @since [产品/模块版本] （可选）
 */
public class EsBasePojo implements java.io.Serializable {

    private static final long serialVersionUID = -7816450722655688491L;

    //es文档id
    private String _id;

    //es索引类型
    private String _type;

    //es的索引
    private String _index;


    //es文档id所对应的版本
    private String _version;

    //es对应的记录
    private String _score;

    //查询的源串
    private JSONObject _source;

    //高亮显示
    private JSONObject highlight;

    //排序
    private JSONArray sort;

    //查询总数
    private long total;

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public String get_id() {
        return _id;
    }

    public void set_id(String _id) {
        this._id = _id;
    }

    public String get_type() {
        return _type;
    }

    public void set_type(String _type) {
        this._type = _type;
    }

    public String get_index() {
        return _index;
    }

    public void set_index(String _index) {
        this._index = _index;
    }

    public String get_version() {
        return _version;
    }

    public void set_version(String _version) {
        this._version = _version;
    }

    public String get_score() {
        return _score;
    }

    public void set_score(String _score) {
        this._score = _score;
    }

    public JSONObject get_source() {
        return _source;
    }

    public void set_source(JSONObject _source) {
        this._source = _source;
    }

    public JSONObject getHighlight() {
        return highlight;
    }

    public void setHighlight(JSONObject highlight) {
        this.highlight = highlight;
    }

    public JSONArray getSort() {
        return sort;
    }

    public void setSort(JSONArray sort) {
        this.sort = sort;
    }
}
